package com.ellfors.module_first.edge_effect

import android.view.LayoutInflater
import android.view.ViewGroup
import com.ellfors.common.base.adapter.BaseSingleAdapter
import com.ellfors.module_first.databinding.ItemEdgeEffectBinding

/**
 * @date: 2024/07/03
 * @author: ly
 * @Description:
 */
class EdgeEffectAdapter : BaseSingleAdapter<String, ItemEdgeEffectBinding>() {

    override val initViewBinding: (LayoutInflater, ViewGroup, Boolean) -> ItemEdgeEffectBinding
        get() = ItemEdgeEffectBinding::inflate

    override fun convert(
        holder: SingleViewHolder<ItemEdgeEffectBinding>, position: Int, item: String?
    ) {
        holder.binding.tvContent.text = item ?: ""
    }
}